home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_libpcap.idb / usr / freeware / src / libpcap / patches.z / patches
Encoding:
Text File  |  1999-04-16  |  4.0 KB  |  163 lines

  1. *** ./Makefile.in    Mon Jul 28 06:16:03 1997
  2. --- ../libpcap-0.4/./Makefile.in    Thu Nov 12 09:54:40 1998
  3. ***************
  4. *** 47,53 ****
  5.   DEFS = @DEFS@
  6.   
  7.   # Standard CFLAGS
  8. ! CFLAGS = $(CCOPT) $(INCLS) $(DEFS)
  9.   
  10.   INSTALL = @INSTALL@
  11.   RANLIB = @V_RANLIB@
  12. --- 47,55 ----
  13.   DEFS = @DEFS@
  14.   
  15.   # Standard CFLAGS
  16. ! # drop the CCOPT bit. We get that from the parent Makefile
  17. ! #CFLAGS = $(CCOPT) $(INCLS) $(DEFS)
  18. ! CFLAGS = $(INCLS) $(DEFS)
  19.   
  20.   INSTALL = @INSTALL@
  21.   RANLIB = @V_RANLIB@
  22. ***************
  23. *** 63,71 ****
  24.   # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
  25.   # Also, gcc does not remove the .o before forking 'as', which can be a
  26.   # problem if you don't own the file but can write to the directory.
  27.   .c.o:
  28.       @rm -f $@
  29. !     $(CC) $(CFLAGS) -c $(srcdir)/$*.c
  30.   
  31.   PSRC =    pcap-@V_PCAP@.c
  32.   CSRC =    pcap.c inet.c gencode.c optimize.c nametoaddr.c \
  33. --- 65,77 ----
  34.   # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
  35.   # Also, gcc does not remove the .o before forking 'as', which can be a
  36.   # problem if you don't own the file but can write to the directory.
  37. + #
  38. + # explicitly put .o files into a directory depending on ABI (defined by
  39. + # parent)
  40.   .c.o:
  41.       @rm -f $@
  42. !     $(CC) $(CFLAGS) -c $(srcdir)/$*.c -o $(srcdir)/$(TYPE)/$*.o
  43.   
  44.   PSRC =    pcap-@V_PCAP@.c
  45.   CSRC =    pcap.c inet.c gencode.c optimize.c nametoaddr.c \
  46. ***************
  47. *** 88,102 ****
  48.   TAGFILES = \
  49.       $(SRC) $(HDR) $(TAGHDR)
  50.   
  51. ! CLEANFILES = $(OBJ) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c
  52.   
  53. ! all: libpcap.a
  54.   
  55. ! libpcap.a: $(OBJ)
  56.       @rm -f $@
  57. !     ar rc $@ $(OBJ)
  58.       $(RANLIB) $@
  59.   
  60.   scanner.c: $(srcdir)/scanner.l
  61.       @rm -f $@
  62.       $(LEX) -t $< > $$$$.$@; mv $$$$.$@ $@
  63. --- 94,139 ----
  64.   TAGFILES = \
  65.       $(SRC) $(HDR) $(TAGHDR)
  66.   
  67. ! CLEANFILES = $(OBJ) libpcap.a libpcap.so libpcap_o32.a libpcap_o32.so \
  68. !         libpcap_64.a libpcap_64.so $(GENSRC) $(GENHDR) lex.yy.c
  69. ! #all: libpcap.a
  70. ! # Make sure the directory for .o files exists
  71. ! $(TYPE): 
  72. !     @rm -rf $@
  73. !     mkdir $@
  74. ! # Add depenedancy for the subdirectory and cd there to do the archiving
  75. ! libpcap.a: $(TYPE) $(OBJ)
  76. !     @rm -f $@
  77. !     cd $(TYPE) && ar rc ../$@ $(OBJ)
  78. !     $(RANLIB) $@
  79. ! # Make a DSO
  80. ! libpcap.so: libpcap.a
  81. !     @rm -f $@
  82. !     $(LD) $(LDFLAGS) -shared -all -soname libpcap.so libpcap.a -o $@
  83. ! libpcap_o32.a: $(TYPE) $(OBJ)
  84. !     @rm -f $@
  85. !     cd $(TYPE) && ar rc ../$@ $(OBJ)
  86. !     $(RANLIB) $@
  87.   
  88. ! libpcap_o32.so: libpcap_o32.a
  89. !     @rm -f $@
  90. !     $(LD) $(LDFLAGS) -shared -all -soname libpcap.so libpcap_o32.a -o $@
  91.   
  92. ! libpcap_64.a: $(TYPE) $(OBJ)
  93.       @rm -f $@
  94. !     cd $(TYPE) && ar rc ../$@ $(OBJ)
  95.       $(RANLIB) $@
  96.   
  97. + libpcap_64.so: libpcap_64.a
  98. +     @rm -f $@
  99. +     $(LD) $(LDFLAGS) -shared -all -soname libpcap.so libpcap_64.a -o $@
  100.   scanner.c: $(srcdir)/scanner.l
  101.       @rm -f $@
  102.       $(LEX) -t $< > $$$$.$@; mv $$$$.$@ $@
  103. ***************
  104. *** 109,117 ****
  105.       mv y.tab.c grammar.c
  106.       mv y.tab.h tokdefs.h
  107.   
  108.   grammar.o: grammar.c
  109.       @rm -f $@
  110. !     $(CC) $(CFLAGS) -Dyylval=pcap_lval -c grammar.c
  111.   
  112.   version.o: version.c
  113.   version.c: $(srcdir)/VERSION
  114. --- 146,155 ----
  115.       mv y.tab.c grammar.c
  116.       mv y.tab.h tokdefs.h
  117.   
  118. + # Special case for .o target (see .c.o rule)
  119.   grammar.o: grammar.c
  120.       @rm -f $@
  121. !     $(CC) $(CFLAGS) -Dyylval=pcap_lval -c grammar.c -o $(srcdir)/$(TYPE)/$@
  122.   
  123.   version.o: version.c
  124.   version.c: $(srcdir)/VERSION
  125. ***************
  126. *** 136,141 ****
  127. --- 174,180 ----
  128.   
  129.   clean:
  130.       rm -f $(CLEANFILES)
  131. +     rm -rf n32 o32 64
  132.   
  133.   distclean:
  134.       rm -f $(CLEANFILES) Makefile config.cache config.log config.status \
  135. *** ./pcap.h    Thu Oct 16 05:59:16 1997
  136. --- ../libpcap-0.4/./pcap.h    Wed Nov 11 17:14:49 1998
  137. ***************
  138. *** 82,88 ****
  139. --- 82,96 ----
  140.    * packet interfaces.
  141.    */
  142.   struct pcap_pkthdr {
  143. + /* for 64 bit binaries timeval structure is different */
  144. + #if (_MIPS_SZLONG == 64)
  145. +     struct irix5_timeval ts;    /* 64 bit condition. see /usr/include/net/raw.h */
  146. + #else
  147.       struct timeval ts;    /* time stamp */
  148. + #endif /* _MIPS_SZLONG == 64 */
  149.       bpf_u_int32 caplen;    /* length of portion present */
  150.       bpf_u_int32 len;    /* length this packet (off wire) */
  151.   };
  152.